﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Legend.Object;
using Microsoft.Xna.Framework;

namespace Legend.Component.Interface
{
    public abstract class ICollision : IComponent
    {
        private GameObject owner;
        public enum CollisionTypes
        {
            Block,
            Through,
        };
        private CollisionTypes collisionType = CollisionTypes.Through;

        public CollisionTypes CollisionType
        {
            get { return collisionType; }
            set { collisionType = value; }
        }

        public GameObject Owner
        {
            get { return owner; }
            set { owner = value; }
        }
        public Type UniqueType
        {
            get { return typeof(ICollision); }
        }

        public abstract BoundingBox BoundingBox
        {
            get; set;
        }

        public abstract BoundingBox LocalBoundingBox
        {
            get;
            set;
        }
    }
}
